apiVersion: logging.kubesphere.io/v1alpha2
kind: Input
metadata:
  name: tail
  namespace: kubesphere-logging-system
  labels:
    logging.kubesphere.io/enabled: "true"
    logging.kubesphere.io/component: "logging"
spec:
  tail:
    tag: kube.*
    path: /var/log/containers/*.log
{% if (logging_container_runtime== 'containerd') or (logging_container_runtime== 'crio') %}
    parser: cri
{% else %}
    parser: docker
{% endif %}
    refreshIntervalSeconds: 10
    memBufLimit: 100MB
    skipLongLines: true
    db: /fluent-bit/tail/pos.db
    dbSync: Normal
    excludePath: /var/log/containers/*_kubesphere-logging-system_events-exporter*.log,/var/log/containers/kube-auditing-webhook*_kubesphere-logging-system_kube-auditing-webhook*.log

